package com.edu.hre.struts.form.pim;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.utils.CommonUtils;

public class EmpEducationUpdateForm extends ActionForm {
	
	private int id = 0;
	private int empNumber;

	private int level;
	private String institute;
	private int major;
	private String year;
	private String score;
	private Date startDate;
	private Date endDate;

	private String message = "";
	private boolean isAddNew = true;
	
	private List<LabelValueBean> allLevels = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allMajors = new ArrayList<LabelValueBean>();
	
	public EmpEducationUpdateForm() {

	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isAddNew() {
		return isAddNew;
	}

	public void setAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}
	
	public boolean getIsAddNew() {
		return isAddNew;
	}

	public void setIsAddNew(boolean isAddNew) {
		this.isAddNew = isAddNew;
	}

	public int getEmpNumber() {
		return empNumber;
	}

	public void setEmpNumber(int empNumber) {
		this.empNumber = empNumber;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public String getInstitute() {
		return institute;
	}

	public void setInstitute(String institute) {
		this.institute = institute;
	}

	public int getMajor() {
		return major;
	}

	public void setMajor(int major) {
		this.major = major;
	}

	public String getYear() {
		return year;
	}

	public void setYear(String year) {
		this.year = year;
	}

	public String getScore() {
		return score;
	}

	public void setScore(String score) {
		this.score = score;
	}

	public String getStartDate() {
		return CommonUtils.dateToString(startDate);
	}

	public void setStartDate(String startDate) {
		this.startDate = CommonUtils.stringToDate(startDate);
	}

	public String getEndDate() {
		return CommonUtils.dateToString(endDate);
	}

	public void setEndDate(String endDate) {
		this.endDate = CommonUtils.stringToDate(endDate);
	}

	public List<LabelValueBean> getAllLevels() {
		return allLevels;
	}

	public void setAllLevels(List<LabelValueBean> allLevels) {
		this.allLevels = allLevels;
	}

	public List<LabelValueBean> getAllMajors() {
		return allMajors;
	}

	public void setAllMajors(List<LabelValueBean> allMajors) {
		this.allMajors = allMajors;
	}
}
